<?php

class Session {

  /**
   *
   * @var session_handler
   */
  protected static $_handler;

  /**
   * singleton
   * @return session
   */
  public static function start() {
    if (self::$_handler == NULL) {
      self::$_handler = new Session_Database();
    }
  }

  /**
   * get current user
   * @return user
   */
  public static function current_user() {
    return user::current();
  }
}